const state = {
  isTopMenu: false,
  showLogo: true,
  isCollapse: localStorage.getItem("isCollapse") ? Boolean(localStorage.getItem("isCollapse") === 'true') : false,
};

const mutations = {
  CHANGE_SHOW_LOGO: (state, params) => {
    state.showLogo = params
  },
  CHANGE_COLLAPSED: (state) => {
    state.isCollapse = !state.isCollapse;
    localStorage.setItem("isCollapse", state.isCollapse);
  },
};

const actions = {
};
export default {
  state,
  mutations,
  actions,
};
